package org.darkhelm.shtester.client;

import com.alexgorbatchev.syntaxhighlighter.client.Brush;
import com.alexgorbatchev.syntaxhighlighter.client.Highlighter;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class App implements EntryPoint {

    VerticalPanel vPanel;
    private int hlCount;

    public void onModuleLoad() {
        vPanel = new VerticalPanel();
        hlCount = 0;
        makeHighlighter();
        makeHighlighter();
        RootPanel.get().add(vPanel);
    }

    public void makeHighlighter() {
        Highlighter hl = new Highlighter(Brush.Brushes.PLAIN());
        hl.setText("Highlighter #" + ++hlCount);
        vPanel.add(hl);
    }
}
